namespace QMVnSoft.SystemForms
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormBarcodeMemvars : FormControl
    {
        private BtnControl btnCancel;
        private BtnControl btnOk;
        private IContainer components;
        private GBoxControl GBoxMemvar01;
        private GBoxControl GBoxMemvar02;
        private LabelControl lblDesc_EN;
        private LabelControl lblDien_Giai;
        private LabelControl lblMa_Bp;
        private LabelControl lblMa_Dt;
        private LabelControl lblMa_Hd;
        private LabelControl lblMa_Kho;
        private LabelControl lblMa_Km;
        private LabelControl lblMa_Nx;
        private RdioControl rdioControl1;
        private RdioControl rdioControl2;
        private RdioControl rdioControl20;
        private RdioControl rdioControl21;
        private RdioControl rdioControl22;
        private TextControl txtDesc_EN;
        private TextControl txtDien_Giai;
        private TextSearch txtMa_Bp;
        private TextSearch txtMa_Dt;
        private TextSearch txtMa_Hd;
        private TextSearch txtMa_Kho;
        private TextSearch txtMa_Km;
        private TextSearch txtMa_Nx;
        private TextControl txtTen_Bp;
        private TextControl txtTen_Dt;
        private TextControl txtTen_Hd;
        private TextControl txtTen_Kho;
        private TextControl txtTen_Km;
        private TextControl txtTen_Nx;

        public FormBarcodeMemvars()
        {
            this.InitializeComponent();
            try
            {
                this.GBoxMemvar01.Value = short.Parse(AppDataAccess.GetUservar(AppInstance.UserName, "BARCODE_INV_Locked").ToString());
                this.GBoxMemvar02.Value = short.Parse(AppDataAccess.GetUservar(AppInstance.UserName, "BARCODE_INV_Posted").ToString());
                this.txtMa_Bp.Value = AppDataAccess.GetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Bp").ToString();
                this.txtMa_Hd.Value = AppDataAccess.GetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Hd").ToString();
                this.txtMa_Dt.Value = AppDataAccess.GetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Dt").ToString();
                this.txtDien_Giai.Value = AppDataAccess.GetUservar(AppInstance.UserName, "BARCODE_INV_Dien_Giai").ToString();
                this.txtDesc_EN.Value = AppDataAccess.GetUservar(AppInstance.UserName, "BARCODE_INV_Desc_EN").ToString();
                this.txtMa_Km.Value = AppDataAccess.GetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Km").ToString();
                this.txtMa_Nx.Value = AppDataAccess.GetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Nx").ToString();
                this.txtMa_Kho.Value = AppDataAccess.GetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Kho").ToString();
            }
            catch
            {
            }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            this.Register();
            base.Close();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            //ComponentResourceManager manager = new ComponentResourceManager(typeof(FormBarcodeMemvars));
            this.btnOk = new BtnControl();
            this.btnCancel = new BtnControl();
            this.GBoxMemvar02 = new GBoxControl();
            this.rdioControl20 = new RdioControl();
            this.rdioControl21 = new RdioControl();
            this.rdioControl22 = new RdioControl();
            this.GBoxMemvar01 = new GBoxControl();
            this.rdioControl2 = new RdioControl();
            this.rdioControl1 = new RdioControl();
            this.txtTen_Dt = new TextControl();
            this.txtMa_Dt = new TextSearch();
            this.lblMa_Dt = new LabelControl();
            this.txtDesc_EN = new TextControl();
            this.txtDien_Giai = new TextControl();
            this.txtTen_Nx = new TextControl();
            this.txtTen_Hd = new TextControl();
            this.txtTen_Km = new TextControl();
            this.txtTen_Bp = new TextControl();
            this.lblDesc_EN = new LabelControl();
            this.lblDien_Giai = new LabelControl();
            this.txtMa_Nx = new TextSearch();
            this.txtMa_Hd = new TextSearch();
            this.lblMa_Nx = new LabelControl();
            this.lblMa_Hd = new LabelControl();
            this.txtMa_Km = new TextSearch();
            this.lblMa_Km = new LabelControl();
            this.txtMa_Bp = new TextSearch();
            this.lblMa_Bp = new LabelControl();
            this.lblMa_Kho = new LabelControl();
            this.txtMa_Kho = new TextSearch();
            this.txtTen_Kho = new TextControl();
            this.GBoxMemvar02.SuspendLayout();
            this.GBoxMemvar01.SuspendLayout();
            base.SuspendLayout();
            this.btnOk.Font = new Font("Arial", 8.25f);
            this.btnOk.Location = new Point(0x18f, 0x187);
            this.btnOk.Name = "btnOk";
            this.btnOk.Size = new Size(0x4b, 0x17);
            this.btnOk.TabIndex = 10;
            this.btnOk.Text = "&Chấp nhận";
            this.btnOk.UseVisualStyleBackColor = true;
            this.btnOk.Click += new EventHandler(this.btnOk_Click);
            //this.btnCancel.DialogResult = DialogResult.Cancel;
            this.btnCancel.Font = new Font("Arial", 8.25f);
            this.btnCancel.Location = new Point(0x1e2, 0x187);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new Size(0x4b, 0x17);
            this.btnCancel.TabIndex = 11;
            this.btnCancel.Text = "&Hủy bỏ";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click += new EventHandler(this.btnCancel_Click);
            this.GBoxMemvar02.Controls.Add(this.rdioControl20);
            this.GBoxMemvar02.Controls.Add(this.rdioControl21);
            this.GBoxMemvar02.Controls.Add(this.rdioControl22);
            this.GBoxMemvar02.Font = new Font("Arial", 8.25f);
            this.GBoxMemvar02.Location = new Point(0x124, 12);
            this.GBoxMemvar02.Name = "GBoxMemvar02";
            this.GBoxMemvar02.OptionBox = true;
            this.GBoxMemvar02.Size = new Size(0xfd, 0x52);
            this.GBoxMemvar02.TabIndex = 1;
            this.GBoxMemvar02.TabStop = false;
            this.GBoxMemvar02.Text = "T\x00ecnh trạng của chứng từ";
            this.rdioControl20.AutoSize = true;
            this.rdioControl20.Font = new Font("Arial", 8.25f);
            this.rdioControl20.Location = new Point(0x11, 0x3a);
            this.rdioControl20.Name = "rdioControl20";
            this.rdioControl20.Size = new Size(100, 0x12);
            this.rdioControl20.TabIndex = 2;
            this.rdioControl20.Text = "Duyệt chứng từ";
            this.rdioControl20.UseVisualStyleBackColor = true;
            this.rdioControl21.AutoSize = true;
            this.rdioControl21.Font = new Font("Arial", 8.25f);
            this.rdioControl21.Location = new Point(0x11, 0x26);
            this.rdioControl21.Name = "rdioControl21";
            this.rdioControl21.Size = new Size(100, 0x12);
            this.rdioControl21.TabIndex = 1;
            this.rdioControl21.Text = "Cập nhật sổ c\x00e1i";
            this.rdioControl21.UseVisualStyleBackColor = true;
            this.rdioControl22.AutoSize = true;
            this.rdioControl22.Checked = true;
            this.rdioControl22.Font = new Font("Arial", 8.25f);
            this.rdioControl22.Location = new Point(0x11, 0x12);
            this.rdioControl22.Name = "rdioControl22";
            this.rdioControl22.Size = new Size(0x2c, 0x12);
            this.rdioControl22.TabIndex = 0;
            this.rdioControl22.TabStop = true;
            this.rdioControl22.Text = "Huỷ";
            this.rdioControl22.UseVisualStyleBackColor = true;
            this.GBoxMemvar01.Controls.Add(this.rdioControl2);
            this.GBoxMemvar01.Controls.Add(this.rdioControl1);
            this.GBoxMemvar01.Font = new Font("Arial", 8.25f);
            this.GBoxMemvar01.Location = new Point(0x11, 12);
            this.GBoxMemvar01.Name = "GBoxMemvar01";
            this.GBoxMemvar01.OptionBox = true;
            this.GBoxMemvar01.Size = new Size(0xfd, 0x52);
            this.GBoxMemvar01.TabIndex = 0;
            this.GBoxMemvar01.TabStop = false;
            this.GBoxMemvar01.Text = "T\x00ecnh trạng của khóa chứng từ";
            this.rdioControl2.AutoSize = true;
            this.rdioControl2.Font = new Font("Arial", 8.25f);
            this.rdioControl2.Location = new Point(0x11, 0x26);
            this.rdioControl2.Name = "rdioControl2";
            this.rdioControl2.Size = new Size(50, 0x12);
            this.rdioControl2.TabIndex = 1;
            this.rdioControl2.Text = "Khóa";
            this.rdioControl2.UseVisualStyleBackColor = true;
            this.rdioControl1.AutoSize = true;
            this.rdioControl1.Checked = true;
            this.rdioControl1.Font = new Font("Arial", 8.25f);
            this.rdioControl1.Location = new Point(0x11, 0x12);
            this.rdioControl1.Name = "rdioControl1";
            this.rdioControl1.Size = new Size(40, 0x12);
            this.rdioControl1.TabIndex = 0;
            this.rdioControl1.TabStop = true;
            this.rdioControl1.Text = "Mở";
            this.rdioControl1.UseVisualStyleBackColor = true;
            this.txtTen_Dt.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Dt.BackColor = SystemColors.Control;
            this.txtTen_Dt.BorderStyle = BorderStyle.None;
            this.txtTen_Dt.CheckTextSearched = false;
            this.txtTen_Dt.DisabledForeColor = Color.Blue;
            this.txtTen_Dt.Enabled = false;
            this.txtTen_Dt.Font = new Font("Arial", 8.25f);
            this.txtTen_Dt.ForeColor = Color.Blue;
            this.txtTen_Dt.Location = new Point(0xe4, 0x99);
            this.txtTen_Dt.Name = "txtTen_Dt";
            this.txtTen_Dt.OldValue = null;
            this.txtTen_Dt.Size = new Size(0x13b, 13);
            this.txtTen_Dt.TabIndex = 0x74;
//            this.txtTen_Dt.Value = null;//manager.GetObject("txtTen_Dt.Value");
            this.txtMa_Dt.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Dt.CheckTextSearched = false;
            this.txtMa_Dt.DisabledForeColor = Color.Empty;
            this.txtMa_Dt.FieldDisplay = "Ten_Dt";
            this.txtMa_Dt.Font = new Font("Arial", 8.25f);
            this.txtMa_Dt.Location = new Point(0x68, 150);
            this.txtMa_Dt.MaxLength = 0x20;
            this.txtMa_Dt.Name = "txtMa_Dt";
            this.txtMa_Dt.OldValue = null;
            this.txtMa_Dt.Size = new Size(0x76, 20);
            this.txtMa_Dt.TabIndex = 4;
            this.txtMa_Dt.TableName = "DMDT";
            this.txtMa_Dt.TextDisplay = this.txtTen_Dt;
            this.txtMa_Dt.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Dt.Value = null;//manager.GetObject("txtMa_Dt.Value");
            this.lblMa_Dt.AutoSize = true;
            this.lblMa_Dt.Font = new Font("Arial", 8.25f);
            this.lblMa_Dt.Location = new Point(0x11, 0x99);
            this.lblMa_Dt.Name = "lblMa_Dt";
            this.lblMa_Dt.Size = new Size(0x37, 14);
            this.lblMa_Dt.TabIndex = 0x73;
            this.lblMa_Dt.Text = "Đối tượng";
            this.txtDesc_EN.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.txtDesc_EN.CheckTextSearched = false;
            this.txtDesc_EN.DisabledForeColor = Color.Blue;
            this.txtDesc_EN.Font = new Font("Arial", 8.25f);
            this.txtDesc_EN.Location = new Point(0x68, 0xc0);
            this.txtDesc_EN.Name = "txtDesc_EN";
            this.txtDesc_EN.OldValue = null;
            this.txtDesc_EN.Size = new Size(0x1b7, 20);
            this.txtDesc_EN.TabIndex = 6;
//            this.txtDesc_EN.Value = null;//manager.GetObject("txtDesc_EN.Value");
            this.txtDien_Giai.CheckTextSearched = false;
            this.txtDien_Giai.DisabledForeColor = Color.Blue;
            this.txtDien_Giai.Font = new Font("Arial", 8.25f);
            this.txtDien_Giai.Location = new Point(0x68, 0xab);
            this.txtDien_Giai.Name = "txtDien_Giai";
            this.txtDien_Giai.OldValue = null;
            this.txtDien_Giai.Size = new Size(0x1b7, 20);
            this.txtDien_Giai.TabIndex = 5;
//            this.txtDien_Giai.Value = null;//manager.GetObject("txtDien_Giai.Value");
            this.txtTen_Nx.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Nx.BackColor = SystemColors.Control;
            this.txtTen_Nx.BorderStyle = BorderStyle.None;
            this.txtTen_Nx.CheckTextSearched = false;
            this.txtTen_Nx.DisabledForeColor = Color.Blue;
            this.txtTen_Nx.Enabled = false;
            this.txtTen_Nx.Font = new Font("Arial", 8.25f);
            this.txtTen_Nx.ForeColor = Color.Blue;
            this.txtTen_Nx.Location = new Point(0xe4, 0xed);
            this.txtTen_Nx.Name = "txtTen_Nx";
            this.txtTen_Nx.OldValue = null;
            this.txtTen_Nx.Size = new Size(0x13b, 13);
            this.txtTen_Nx.TabIndex = 0x70;
//            this.txtTen_Nx.Value = null;//manager.GetObject("txtTen_Nx.Value");
            this.txtTen_Hd.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Hd.BackColor = SystemColors.Control;
            this.txtTen_Hd.BorderStyle = BorderStyle.None;
            this.txtTen_Hd.CheckTextSearched = false;
            this.txtTen_Hd.DisabledForeColor = Color.Blue;
            this.txtTen_Hd.Enabled = false;
            this.txtTen_Hd.Font = new Font("Arial", 8.25f);
            this.txtTen_Hd.ForeColor = Color.Blue;
            this.txtTen_Hd.Location = new Point(0xe4, 0x84);
            this.txtTen_Hd.Name = "txtTen_Hd";
            this.txtTen_Hd.OldValue = null;
            this.txtTen_Hd.Size = new Size(0x13b, 13);
            this.txtTen_Hd.TabIndex = 0x6f;
//            this.txtTen_Hd.Value = null;//manager.GetObject("txtTen_Hd.Value");
            this.txtTen_Km.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Km.BackColor = SystemColors.Control;
            this.txtTen_Km.BorderStyle = BorderStyle.None;
            this.txtTen_Km.CheckTextSearched = false;
            this.txtTen_Km.DisabledForeColor = Color.Blue;
            this.txtTen_Km.Enabled = false;
            this.txtTen_Km.Font = new Font("Arial", 8.25f);
            this.txtTen_Km.ForeColor = Color.Blue;
            this.txtTen_Km.Location = new Point(0xe4, 0xd8);
            this.txtTen_Km.Name = "txtTen_Km";
            this.txtTen_Km.OldValue = null;
            this.txtTen_Km.Size = new Size(0x13b, 13);
            this.txtTen_Km.TabIndex = 0x72;
//            this.txtTen_Km.Value = null;//manager.GetObject("txtTen_Km.Value");
            this.txtTen_Bp.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Bp.BackColor = SystemColors.Control;
            this.txtTen_Bp.BorderStyle = BorderStyle.None;
            this.txtTen_Bp.CheckTextSearched = false;
            this.txtTen_Bp.DisabledForeColor = Color.Blue;
            this.txtTen_Bp.Enabled = false;
            this.txtTen_Bp.Font = new Font("Arial", 8.25f);
            this.txtTen_Bp.ForeColor = Color.Blue;
            this.txtTen_Bp.Location = new Point(0xe4, 0x6f);
            this.txtTen_Bp.Name = "txtTen_Bp";
            this.txtTen_Bp.OldValue = null;
            this.txtTen_Bp.Size = new Size(0x13b, 13);
            this.txtTen_Bp.TabIndex = 0x71;
//            this.txtTen_Bp.Value = null;//manager.GetObject("txtTen_Bp.Value");
            this.lblDesc_EN.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lblDesc_EN.AutoSize = true;
            this.lblDesc_EN.Font = new Font("Arial", 8.25f);
            this.lblDesc_EN.Location = new Point(0x11, 0xc3);
            this.lblDesc_EN.Name = "lblDesc_EN";
            this.lblDesc_EN.Size = new Size(0x47, 14);
            this.lblDesc_EN.TabIndex = 0x69;
            this.lblDesc_EN.Text = "Diễn giải (EN)";
            this.lblDien_Giai.AutoSize = true;
            this.lblDien_Giai.Font = new Font("Arial", 8.25f);
            this.lblDien_Giai.Location = new Point(0x11, 0xae);
            this.lblDien_Giai.Name = "lblDien_Giai";
            this.lblDien_Giai.Size = new Size(0x49, 14);
            this.lblDien_Giai.TabIndex = 0x6a;
            this.lblDien_Giai.Text = "Diễn giải (VN)";
            this.txtMa_Nx.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Nx.CheckTextSearched = false;
            this.txtMa_Nx.DisabledForeColor = Color.Empty;
            this.txtMa_Nx.FieldDisplay = "Ten_Nx";
            this.txtMa_Nx.Font = new Font("Arial", 8.25f);
            this.txtMa_Nx.FoundIsValid = true;
            this.txtMa_Nx.Location = new Point(0x68, 0xea);
            this.txtMa_Nx.MaxLength = 0x20;
            this.txtMa_Nx.Name = "txtMa_Nx";
            this.txtMa_Nx.OldValue = null;
            this.txtMa_Nx.Size = new Size(0x76, 20);
            this.txtMa_Nx.TabIndex = 8;
            this.txtMa_Nx.TableName = "DMNX";
            this.txtMa_Nx.TextDisplay = this.txtTen_Nx;
            this.txtMa_Nx.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Nx.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Nx.Value = null;//manager.GetObject("txtMa_Nx.Value");
            this.txtMa_Hd.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Hd.CheckTextSearched = false;
            this.txtMa_Hd.DisabledForeColor = Color.Empty;
            this.txtMa_Hd.EmptyIsValid = true;
            this.txtMa_Hd.FieldDisplay = "Ten_Hd";
            this.txtMa_Hd.Font = new Font("Arial", 8.25f);
            this.txtMa_Hd.FoundIsValid = true;
            this.txtMa_Hd.Location = new Point(0x68, 0x81);
            this.txtMa_Hd.MaxLength = 0x20;
            this.txtMa_Hd.Name = "txtMa_Hd";
            this.txtMa_Hd.OldValue = null;
            this.txtMa_Hd.Size = new Size(0x76, 20);
            this.txtMa_Hd.TabIndex = 3;
            this.txtMa_Hd.TableName = "DMHD";
            this.txtMa_Hd.TextDisplay = this.txtTen_Hd;
            this.txtMa_Hd.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Hd.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Hd.Value = null;//manager.GetObject("txtMa_Hd.Value");
            this.lblMa_Nx.AutoSize = true;
            this.lblMa_Nx.Font = new Font("Arial", 8.25f);
            this.lblMa_Nx.Location = new Point(0x11, 0xed);
            this.lblMa_Nx.Name = "lblMa_Nx";
            this.lblMa_Nx.Size = new Size(0x48, 14);
            this.lblMa_Nx.TabIndex = 0x6c;
            this.lblMa_Nx.Text = "Mã nhập xuất";
            this.lblMa_Hd.AutoSize = true;
            this.lblMa_Hd.Font = new Font("Arial", 8.25f);
            this.lblMa_Hd.Location = new Point(0x11, 0x84);
            this.lblMa_Hd.Name = "lblMa_Hd";
            this.lblMa_Hd.Size = new Size(0x36, 14);
            this.lblMa_Hd.TabIndex = 0x6b;
            this.lblMa_Hd.Text = "Hợp đồng";
            this.txtMa_Km.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Km.CheckTextSearched = false;
            this.txtMa_Km.DisabledForeColor = Color.Empty;
            this.txtMa_Km.EmptyIsValid = true;
            this.txtMa_Km.FieldDisplay = "Ten_Km";
            this.txtMa_Km.Font = new Font("Arial", 8.25f);
            this.txtMa_Km.FoundIsValid = true;
            this.txtMa_Km.Location = new Point(0x68, 0xd5);
            this.txtMa_Km.MaxLength = 0x20;
            this.txtMa_Km.Name = "txtMa_Km";
            this.txtMa_Km.OldValue = null;
            this.txtMa_Km.Size = new Size(0x76, 20);
            this.txtMa_Km.TabIndex = 7;
            this.txtMa_Km.TableName = "DMKM";
            this.txtMa_Km.TextDisplay = this.txtTen_Km;
            this.txtMa_Km.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Km.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Km.Value = null;//manager.GetObject("txtMa_Km.Value");
            this.lblMa_Km.AutoSize = true;
            this.lblMa_Km.Font = new Font("Arial", 8.25f);
            this.lblMa_Km.Location = new Point(0x11, 0xd8);
            this.lblMa_Km.Name = "lblMa_Km";
            this.lblMa_Km.Size = new Size(0x3d, 14);
            this.lblMa_Km.TabIndex = 110;
            this.lblMa_Km.Text = "Khoản mục";
            this.txtMa_Bp.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Bp.CheckTextSearched = false;
            this.txtMa_Bp.DisabledForeColor = Color.Empty;
            this.txtMa_Bp.EmptyIsValid = true;
            this.txtMa_Bp.FieldDisplay = "Ten_Bp";
            this.txtMa_Bp.Font = new Font("Arial", 8.25f);
            this.txtMa_Bp.FoundIsValid = true;
            this.txtMa_Bp.Location = new Point(0x68, 0x6c);
            this.txtMa_Bp.MaxLength = 0x20;
            this.txtMa_Bp.Name = "txtMa_Bp";
            this.txtMa_Bp.OldValue = null;
            this.txtMa_Bp.Size = new Size(0x76, 20);
            this.txtMa_Bp.TabIndex = 2;
            this.txtMa_Bp.TableName = "DMBP";
            this.txtMa_Bp.TextDisplay = this.txtTen_Bp;
            this.txtMa_Bp.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Bp.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Bp.Value = null;//manager.GetObject("txtMa_Bp.Value");
            this.lblMa_Bp.AutoSize = true;
            this.lblMa_Bp.Font = new Font("Arial", 8.25f);
            this.lblMa_Bp.Location = new Point(0x11, 0x6f);
            this.lblMa_Bp.Name = "lblMa_Bp";
            this.lblMa_Bp.Size = new Size(0x2f, 14);
            this.lblMa_Bp.TabIndex = 0x6d;
            this.lblMa_Bp.Text = "Bộ phận";
            this.lblMa_Kho.AutoSize = true;
            this.lblMa_Kho.Font = new Font("Arial", 8.25f);
            this.lblMa_Kho.Location = new Point(0x11, 0x102);
            this.lblMa_Kho.Name = "lblMa_Kho";
            this.lblMa_Kho.Size = new Size(0x44, 14);
            this.lblMa_Kho.TabIndex = 0x6c;
            this.lblMa_Kho.Text = "Mã kho hàng";
            this.txtMa_Kho.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Kho.CheckTextSearched = false;
            this.txtMa_Kho.DisabledForeColor = Color.Empty;
            this.txtMa_Kho.EmptyIsValid = true;
            this.txtMa_Kho.FieldDisplay = "Ten_Kho";
            this.txtMa_Kho.Font = new Font("Arial", 8.25f);
            this.txtMa_Kho.FoundIsValid = true;
            this.txtMa_Kho.Location = new Point(0x68, 0xff);
            this.txtMa_Kho.MaxLength = 0x20;
            this.txtMa_Kho.Name = "txtMa_Kho";
            this.txtMa_Kho.OldValue = null;
            this.txtMa_Kho.Size = new Size(0x76, 20);
            this.txtMa_Kho.TabIndex = 9;
            this.txtMa_Kho.TableName = "DMKHO";
            this.txtMa_Kho.TextDisplay = this.txtTen_Kho;
            this.txtMa_Kho.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Kho.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Kho.Value = null;//manager.GetObject("txtMa_Kho.Value");
            this.txtTen_Kho.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Kho.BackColor = SystemColors.Control;
            this.txtTen_Kho.BorderStyle = BorderStyle.None;
            this.txtTen_Kho.CheckTextSearched = false;
            this.txtTen_Kho.DisabledForeColor = Color.Blue;
            this.txtTen_Kho.Enabled = false;
            this.txtTen_Kho.Font = new Font("Arial", 8.25f);
            this.txtTen_Kho.ForeColor = Color.Blue;
            this.txtTen_Kho.Location = new Point(0xe4, 0x102);
            this.txtTen_Kho.Name = "txtTen_Kho";
            this.txtTen_Kho.OldValue = null;
            this.txtTen_Kho.Size = new Size(0x13b, 13);
            this.txtTen_Kho.TabIndex = 0x70;
//            this.txtTen_Kho.Value = null;//manager.GetObject("txtTen_Kho.Value");
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.CancelButton = this.btnCancel;
            base.ClientSize = new Size(0x233, 0x1a5);
            base.Controls.Add(this.txtTen_Dt);
            base.Controls.Add(this.txtMa_Dt);
            base.Controls.Add(this.lblMa_Dt);
            base.Controls.Add(this.txtDesc_EN);
            base.Controls.Add(this.txtDien_Giai);
            base.Controls.Add(this.txtTen_Kho);
            base.Controls.Add(this.txtTen_Nx);
            base.Controls.Add(this.txtTen_Hd);
            base.Controls.Add(this.txtTen_Km);
            base.Controls.Add(this.txtTen_Bp);
            base.Controls.Add(this.lblDesc_EN);
            base.Controls.Add(this.lblDien_Giai);
            base.Controls.Add(this.txtMa_Kho);
            base.Controls.Add(this.txtMa_Nx);
            base.Controls.Add(this.lblMa_Kho);
            base.Controls.Add(this.txtMa_Hd);
            base.Controls.Add(this.lblMa_Nx);
            base.Controls.Add(this.lblMa_Hd);
            base.Controls.Add(this.txtMa_Km);
            base.Controls.Add(this.lblMa_Km);
            base.Controls.Add(this.txtMa_Bp);
            base.Controls.Add(this.lblMa_Bp);
            base.Controls.Add(this.GBoxMemvar02);
            base.Controls.Add(this.GBoxMemvar01);
            base.Controls.Add(this.btnCancel);
            base.Controls.Add(this.btnOk);
            //base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "FormBarcodeMemvars";
            base.ShowIcon = false;
            base.ShowInTaskbar = false;
            this.Text = "Khai báo Thông tin hóa đơn";
            base.TopMost = true;
            this.GBoxMemvar02.ResumeLayout(false);
            this.GBoxMemvar02.PerformLayout();
            this.GBoxMemvar01.ResumeLayout(false);
            this.GBoxMemvar01.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == (Keys.Control | Keys.Return))
            {
                this.Register();
                base.Close();
                return true;
            }
            return base.ProcessCmdKey(ref msg, keyData);
        }

        private void Register()
        {
            AppDataAccess.SetUservar(AppInstance.UserName, "BARCODE_INV_Locked", this.GBoxMemvar01.Value.ToString());
            AppDataAccess.SetUservar(AppInstance.UserName, "BARCODE_INV_Posted", this.GBoxMemvar02.Value.ToString());
            AppDataAccess.SetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Bp", this.txtMa_Bp.Text);
            AppDataAccess.SetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Hd", this.txtMa_Hd.Text);
            AppDataAccess.SetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Dt", this.txtMa_Dt.Text);
            AppDataAccess.SetUservar(AppInstance.UserName, "BARCODE_INV_Dien_Giai", this.txtDien_Giai.Text);
            AppDataAccess.SetUservar(AppInstance.UserName, "BARCODE_INV_Desc_EN", this.txtDesc_EN.Text);
            AppDataAccess.SetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Km", this.txtMa_Km.Text);
            AppDataAccess.SetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Nx", this.txtMa_Nx.Text);
            AppDataAccess.SetUservar(AppInstance.UserName, "BARCODE_INV_Ma_Kho", this.txtMa_Kho.Text);
        }
    }
}

